# uncompyle6 version 3.2.3
# Python bytecode 3.6 (3379)
# Decompiled from: Python 3.6.8 |Anaconda custom (64-bit)| (default, Feb 21 2019, 18:30:04) [MSC v.1916 64 bit (AMD64)]
# Embedded file name: site-packages\Crypto\Random\__init__.py
__revision__ = "$Id$"
__all__ = ["new"]
from Crypto.Random import OSRNG
from Crypto.Random import _UserFriendlyRNG


def new(*args, **kwargs):
    """Return a file-like object that outputs cryptographically random bytes."""
    return _UserFriendlyRNG.new(*args, **kwargs)


def atfork():
    """Call this whenever you call os.fork()"""
    _UserFriendlyRNG.reinit()


def get_random_bytes(n):
    """Return the specified number of cryptographically-strong random bytes."""
    return _UserFriendlyRNG.get_random_bytes(n)
